<#if parameters.fieldGroup?exists || parameters.gridColumn?exists>
	<#if parameters.startName?exists>
		${tag.addParameter('name', "${parameters.startName}")}
		${tag.addParameter('id', "${parameters.startName}")}
	</#if>
	<#if parameters.startValue?exists>
		${tag.addParameter("value", "${parameters.startValue}")}
	</#if>
	<#include "/${parameters.templateDir}/geni/datepicker-body.ftl" />
	--
	<#if parameters.endName?exists>
		${tag.addParameter("name", "${parameters.endName}")}
	</#if>
	<#if parameters.endValue?exists>
		${tag.addParameter("value", "${parameters.endValue}")}
		${tag.addParameter('id', "${parameters.endName}")}
	</#if>
	<#include "/${parameters.templateDir}/geni/datepicker-body.ftl" />
<#else>
	<#include "/${parameters.templateDir}/geni/controlheader.ftl" />
	<#if parameters.startName?exists>
		${tag.addParameter('name', "${parameters.startName}")}
		${tag.addParameter('id', "${parameters.startName}")}
	</#if>
	<#if parameters.startValue?exists>
		${tag.addParameter("value", "${parameters.startValue}")}
	</#if>
	<#include "/${parameters.templateDir}/geni/datepicker-body.ftl" />
	--
	<#if parameters.endName?exists>
		${tag.addParameter("name", "${parameters.endName}")}
	</#if>
	<#if parameters.endValue?exists>
		${tag.addParameter("value", "${parameters.endValue}")}
		${tag.addParameter('id', "${parameters.endName}")}
	</#if>
	<#include "/${parameters.templateDir}/geni/datepicker-body.ftl" />
	<#include "/${parameters.templateDir}/geni/controlfooter.ftl" />
</#if>

